package demo;

public class Demo1 {
	
public static void main(String[] args) {
	
	for(int i=1;i<=12;i++)
		System.out.println("第"+i+"个月的兔子数为："+f(i));
	/*int a=1 ,b=1,c;
	{
		if(i<=2)
			System.out.println("第"+i+"个月的兔子数为："+1);
	    else {
	    c=a+b;
		a=b;
		b=c;
		}
	}*/
	}
public static int f(int n){
		if(n==1||n==2)return 1;
		else return f(n-1)+f(n-2);
		}
				
		
	
}

